<template>
  <view>
    <choose-location @locationResult="locationResult" :tdKey='tdKey'></choose-location>
  </view>
</template>

<script>
export default {
  data() {
    return {
		tdKey:'你的天地图key'
	};
  },
  methods: {
    locationResult(e) {
      console.log(e);
      uni.$emit("getPostion", {
        postion: {
          address: e.address,
          lonlat: e.lonlat,
        },
      });
      uni.navigateBack()
    },
  },
};
</script>

<style></style>